
<ion-view title="ITSM" hide-nav-bar="false">
    
<ion-content ng-controller="FwqqCtrl">       
<input type="hidden" name="department" ng-model='formData.department' value="{{department}}">
  	<input type="hidden" name="username" ng-model='formData.username' value="{{username}}">
	
<div class="list" style="box-shadow: 0px 5px 5px #888888;background-color: #f2f2f2;">
	<div class="row">
	  <div class="col col-50">事件单号：-- </div>
	  <div class="col col-50">状态：新建</div>
	</div>
	<div class="row">
	  <div class="col col-50">用户名：{{userinfo.username}}</div>
	  <div class="col col-50">部门：{{userinfo.department}}</div>
	</div>
	<div class="row">
	  <div class="col col-50">电话：{{userinfo.phone}}</div>
	  <div class="col col-50">邮件：{{userinfo.email}}</div>
	</div>
</div>
<div class="list" >
	<!--
	<label class="item item-input item-select">
    <div class="input-label">
      严重级别
    </div>
    <select class="form-control" ng-model='formData.impact'>
	    				<option value="">--请选择--</option>
	    				
	    				<option value="PROBLEM_IMPACT_10">高</option>
	    				<option value="PROBLEM_IMPACT_20">中</option>
	    				<option value="PROBLEM_IMPACT_30">低</option>

	    			</select>
  </label>
  <label class="item item-input item-select">
    <div class="input-label">
      紧急程度
    </div>
    <select class="form-control" ng-model='formData.urgency'>
	    				<option value="">--请选择--</option>
	    				<option value="PROBLEM_URGENCY_10">高</option>
	    				<option value="PROBLEM_URGENCY_20">中</option>
	    				<option value="PROBLEM_URGENCY_30">低</option>

	    			</select>
  </label>
  <label class="item item-input item-select">
    <div class="input-label">
      优先级
    </div>
    <select class="form-control" ng-model='formData.priority'>
	    				<option value="">--请选择--</option>
	    				<option value="PROBLEM_PRIORITY_P1">P1</option>
	    				<option value="PROBLEM_PRIORITY_P2">P2</option>
	    				<option value="PROBLEM_PRIORITY_P3">P3</option>
	    			</select>
  </label>
-->
  <label class="item item-input">
        <input type="text" placeholder="标题" ng-model='formData.title' readOnly>
    </label>
    <label class="item item-input">
        <textarea rows="5" placeholder="请描述您所选择的服务请求的具体信息以及用户所在办公地点。" ng-model='formData.description'></textarea>
  </label>
<label class="item item-divider">
    
      请求类型
    
    
  </label>
<div class="list typelist">
  <div class="row">
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="计算机安装" ng-click="selecttype('计算机安装')">
          <div class="item-content">
            <i class="fa fa-desktop"></i>计算机安装
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="打印机安装" ng-click="selecttype('打印机安装')">
          <div class="item-content">
            <i class="fa fa-print"></i>打印机安装
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

    <div class="row">
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="网络调试安装" ng-click="selecttype('网络调试安装')" >
          <div class="item-content">
            <i class="fa fa-sitemap"></i>网络调试安装
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="会议系统调试" ng-click="selecttype('会议系统调试')">
          <div class="item-content">
            <i class="fa fa-comments-o"></i>会议系统调试
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

    <div class="row">
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="系统操作指导" ng-click="selecttype('系统操作指导')" >
          <div class="item-content">
            <i class="fa fa-mobile"></i>系统操作指导
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="IT服务流程咨询" ng-click="selecttype('IT服务流程咨询')">
          <div class="item-content">
            <i class="fa fa-phone"></i>IT服务流程咨询
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>

        <div class="row">
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="现场支持请求" ng-click="selecttype('现场支持请求')" >
          <div class="item-content">
            <i class="fa fa-cube"></i>现场支持请求
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
      <div class="col" >
        <label class="item item-radio">
          <input type="radio" name="category" ng-model='formData.category' value="业务问题咨询" ng-click="selecttype('业务问题咨询')">
          <div class="item-content">
            <i class="fa fa-info"></i>业务问题咨询
          </div>
          <i class="radio-icon ion-android-radio-button-off "></i>
        </label>
      </div>
    </div>
  </div>



  <div class="" ng-click="showActionsheet()" style="margin-top:10px;">
        <a class="item  item-icon-right" href="javascript:void(0)">
          上传图片
          <i class="icon ion-ios-camera"></i>
        </a>
   </div>

	<div class="item" ng-show="showimgdiv">  
    
    <button class="button button-small button-assertive" style="position: absolute;top: 16px;left: 16px;z-index: 999;" ng-click="delimg();">删除</button>
		<img src="{{images_url}}" style="max-width:100%;">  
	</div> 
  
			
</div>
<div class="padding">
	<button class="button button-block button-positive" ng-click="eventDispatch()">
           提交
        </button>
</div>

</ion-content>
</ion-view>